import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
//import reportWebVitals from './reportWebVitals';//严格模式，包裹App标签
import 'antd/dist/antd.css'; //引入antd的css样式
// 引入路由模式
// 路由使用时最重要的三个组件
// router link route 必须是router组件包裹link和route组件
import {BrowserRouter as Router} from 'react-router-dom'
// 引入ant-design 样式
import 'antd/dist/antd.css';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <Router>
    <App />
   </Router>


);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
// reportWebVitals();
